package com.vhly.ddxdecompiler.dexreader.file.constant;

import com.vhly.ddxdecompiler.dexreader.file.DexFile;
import com.vhly.ddxdecompiler.dexreader.file.FieldIdsSection;
import com.vhly.ddxdecompiler.dexreader.file.mixeditem.FieldIdItem;

/**
 * Created by IntelliJ IDEA.
 * User: vhly[FR]
 * Date: 2009-10-21
 * Time: 22:09:27
 * Platform: Mac OS X 10.5.8
 *
 * @author vhly[FR]
 */
public class CstField implements CstConstant{
    private int fieldIndex;

    private FieldIdItem field;

    public CstField(int index) {
        fieldIndex = index;
    }

    public void reloc(DexFile dex) {
        FieldIdsSection fieldIds = dex.getFieldIds();
        field = fieldIds.indexOf(fieldIndex);
    }

    public Object getJavaData() {
        return null;
    }

    public String getJavaType() {
        return null;
    }
}
